﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ExtendedMath
{
    public static class Functions
    {
        public static int Fibonacci(int factor)
        {
            if (factor < 2)
                return factor;

            int x = Fibonacci(--factor);
            int y = Fibonacci(--factor);

            return x + y;

        }
    }
}
